#include "BitPointer.h"
//#include<stdio.h>


int main()
{
	unsigned char c = 0x33;
	for(int i = 0; i < 8; i++)
	{
		BitPointer p = BitPointer(&c, i);
		printf("old value : i=%d bit=%d\n", i, p.getBit());
		printf("reset this bit now\n");
		if(p.getBit()==1)
			p.setBit(0);
		else
			p.setBit(1);
		printf("new value : i=%d bit=%d\n", i, p.getBit());
		printf("test not now\n");
		p.notBit();
		printf("new Value 2 : i=%d bit=%d\n", i, p.getBit());
		printf("////////////////////////////\n");
	}
	return 0;
}
